package com.woniuxy.cloud.carl.carlgoods.common;


import com.woniuxy.result.Messagable;

public enum CarlgoodsResultCode implements Messagable {

    SUCCESS(1200, "请求成功"),
    FAIL(1201,"请求失败"),
    STORE_NOT_EXIST(1202,"商店不存在"),
    SKU_NOT_STOCK(1203,"库存不住"),
    SKU_STOCK_LESS_ZERO(1203,"库存不能小于0"),
    DATA_NOT_DOUBLE(1204,"该条数据已存在，无需重复添加")
    ;

    private Integer code;
    private String message;

    private CarlgoodsResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
